"""
Docker管理WebSocket路由配置
"""
from django.urls import re_path
from .docker_terminal_consumer import DockerTerminalConsumer
from .docker_logs_consumer import DockerLogsConsumer

websocket_urlpatterns = [
    re_path(r'ws/docker/(?P<server_id>\d+)/containers/(?P<container_id>[^/]+)/terminal/$', DockerTerminalConsumer.as_asgi()),
    re_path(r'ws/docker/(?P<server_id>\d+)/containers/(?P<container_id>[^/]+)/logs/$', DockerLogsConsumer.as_asgi()),
]
